<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>我的订单</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" th:href="@{../../pages/img/logo.jpg.ico}" />
    <link th:href="@{../css/public.css}" type="text/css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>

    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" th:href="@{../css/bootstrap.min.css}">

</head>
<body>
<div th:replace="public.html::上方导航"></div>
<div class="dbys">
<div th:replace="public.html::左导航栏"></div>
</div>
<div id="操作界面">
    <table class="table table-hover bd">
        <thead>
        <tr>
            <th>订单编号</th>
            <th>用户id</th>
            <th>创建时间</th>
            <th>电影名称</th>
            <th>播放时长</th>
            <th>电影类型</th>
            <th>地区</th>
            <th>单价</th>
            <th>数量</th>
            <th>总价</th>

        </tr>
        </thead>
        <tbody>
        <tr th:each="order:${orderList}" class="success">
            <td name="oid" th:text="${order.oid}">订单编号</td>
            <td th:text="${order.u_id}">用户id</td>
            <td th:text="${order.odate}">创建时间</td>
            <td th:text="${order.m_id.MName}">电影名称</td>
            <td th:text="${order.m_id.MReleaseTime}">播放时长</td>
            <td th:text="${order.m_id.MType}">电影类型</td>
            <td th:text="${order.m_id.MArea}">地区</td>
            <td th:text="${order.m_id.MPrice}">单价</td>
            <td th:text="${order.onum}">数量</td>
            <td th:text="${order.allPrice}">总价</td>
            <td class="col-sm-1 control-label">
                <a id="delete" th:href="@{/movie/order/delete(oid=${order.oid})}" class="btn btn-danger" onclick="var toDelete = (confirm('确定要删除这个订单吗?')); return toDelete ">删除</a>
            </td>

            <td class=""></td>
        </tr>
        </tbody>

    </table>

</div>
</body>
</html>